package com.snow.service.user;

import com.snow.pojo.model.UserDomain;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @author: snow
 * @Date: 2020-01-18
 **/
@Service
public interface UserService {
    /**
     * 更新用户信息
     * @param userDomain
     * @return
     */
    int updateUserInfo(UserDomain userDomain);

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    UserDomain login(String username,String password);

    /**
     * 根据id获取用户信息
     * @param uid
     * @return
     */

    UserDomain getUserInfoById(Integer uid);

    /**
     * 根据用户名得到用户
     * @param username
     * @return
     */
    UserDomain getUserByUsername(String username);

    /**
     * 注册
     * @param userDomain
     */
    void registry(UserDomain userDomain);
}
